<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/static/maincss/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/maincss/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="/static/maincss/animate.css" rel="stylesheet">
    <link href="/static/maincss/style.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>
                <img src="/static/img/logo.png">
                <h1 class="logo-name">Tour</h1>
            </div>
            <h3>欢迎登录管理员后台</h3>

            <form class="m-t" role="form" method="post">
                {% csrf_token %}
                <div class="form-group">
                    {{ form.adminname }}
                    <span style="color: red;">{{ form.name.errors.0 }}</span>
                </div>
                <div class="form-group">
                    {{ form.password }}
                    <span style="color: red;">{{ form.password.errors.0 }}</span>
                </div>
                <div class="form-inline">
                    <div style="float: left">
                        {{ form.code }}
                        <span style="color: red;">{{ form.code.errors.0 }}</span>
                         </div>
                    <div>
                         <img  style="float: right;position: absolute" id="image_code" src="/adminimage/code/" style="width: 125px;">
                    </div>
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>


                <p class="text-muted text-center"> <a href="/index/"><small>返回首页</small></a>|<a href="/user/login/"><small>返回用户登录</small></a>
                </p>

            </form>
        </div>
    </div>

    <!-- 全局js -->
    <script src="/static/mainjs/jquery.min.js?v=2.1.4"></script>
    <script src="/static/mainjs/bootstrap.min.js?v=3.3.6"></script>




</body>

</html>
